<?php
include('includes/connect.php');
if($_POST['id'])
{
$id=$_POST['id'];
$sql=mysql_query("SELECT * FROM news where category_id = '$id'");
echo '<table border="0">';
while($row=mysql_fetch_array($sql))
{
echo '<tr><td>'.$row['title'].'</td><td><a href=edit_news.php?id='.$row['news_id'].'>Edit</a></td><td><a href=delete.php?news_id='.$row['news_id'].'>Delete</a></td></tr>';
}
echo '</table>';
}

?>